using LightWadf.Analyzer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LightWadf.Configuration
{
    public class GlobalConfiguration : AbstractGlobalConfiguration
    {
        private TimeSpan handlerSlidingExpiration = new TimeSpan(0, 10, 0);
        private List<IResultAnalyzer> resultAnalyzers = null;

        public GlobalConfiguration()
        {
            this.resultAnalyzers = new List<IResultAnalyzer>();
            this.resultAnalyzers.Add(new DefaultResultAnalyzer());
        }

        public override TimeSpan HandlerSlidingExpiration
        {
            get { return this.handlerSlidingExpiration; }
        }

        public override List<Analyzer.IResultAnalyzer> ResultAnalyzers
        {
            get { return this.resultAnalyzers; }
        }
    }
}
